﻿using JobBack.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace JobBack.Controllers
{
    public class BaseController : Controller
    {/// <summary>
     /// 当前用户信息
     /// </summary>
        protected new UTPrincipal User
        {
            get
            {
                if (base.User != null && base.User.GetType() == typeof(UTPrincipal))
                {
                    return (UTPrincipal)base.User;
                }
                return null;
            }
        }
    }
}